var express = require('express');
var router = express.Router();

var musicRouter = require('./music');
var profileRouter = require('./profile');

router.all('*', function(req, res, next) {
    res.header("Access-Control-Allow-Origin", "*");
    res.header("Access-Control-Allow-Headers", "*");
    res.header("Access-Control-Allow-Methods","*");
    next();
});

router.use('/musics/', musicRouter);
router.use('/profiles', profileRouter);

module.exports = router;
